export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "select",
      dicUrl: "/api/blade-user/listAll",
      props: {
        label: "name",
        value: "id"
      },
      addDisplay: false,
      editDisplay: false,
    },

    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "select",
      dicUrl: "/api/blade-user/listAll",
      props: {
        label: "name",
        value: "id"
      },
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "图片",
      prop: "image",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请选择类别",
        trigger: "blur"
      }]
    },
    {
      label: "类型",
      prop: "type",
      type: "select",
      cascader: ['informationId'],
      dicUrl: "/api/blade-system/dict-biz/dictionary?code=scroll_type",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      dataType: "number",
      slot: true,
      rules: [{
        required: true,
        message: "请选择类别",
        trigger: "blur"
      }]
    },
    {
      label: "资讯",
      prop: "informationId",
      type: "select",
      dicUrl: "/api/blade-information/information/listByType/{{key}}",
      props: {
        label: "name",
        value: "id"
      },
    },
    {
      label: '排序',
      prop: 'sort',
      type: 'number',
      tip: '越大越靠前',
      value: 0,
      step: 1,
      min: 0,
    }
  ]
}
